<style>
    input{
        width:80px;
    }
    .span-23{width:1000px}
</style>
<form action="" enctype="multipart/form-data" method="post">    
<input name="file" type="file">
<br>
开始行数：<input name="extuser[startline]" type="text">
用户姓名：<input name="extuser[realname]" type="text">
性别：<input name="extuser[gender]" type="text">
年龄：<input name="extuser[age]" type="text">
证件号：<input name="extuser[idcard_no]" type="text">
婚否：<input name="extuser[married]" type="text">
套餐：<input name="extuser[package_id]" type="text">
<br>

<button type="submit" class="btn">提交</button>
</form>

  
<?php
if($error !== null){
?> 
<div class="error">
<?=$error?>
</div>
<?php
}
?>

  
<?php
if($importinfo !== null){
?> 
<div class="info">
成功人数：<?=$importinfo["success"]?>，失败人数：<?=$importinfo["failed"]?>
</div>
<?php
}
?>
<form action='' method='post'>
       <select  name="importuser[company_id]">
    <?php
    foreach ($company as $c) {
        echo "<option value=$c->id>$c->name</option>";
    }
    ?>
</select>
    <input class="btn" type="submit" value="导入">
    <table class="table table-bordered">
        <tr>
            <th>姓名</th>
            <th>性别</th>
            <th>年龄</th>
            <th>证件号</th>
            <th>婚否</th>
            <th>套餐</th>
        </tr>
        <?php
            foreach ($extuser as $u){
                echo "<tr>";
                echo "<td>"."<input type=text name=importuser[realname][] value=".$u['realname']." /></td>";
                echo "<td>"."<input type=text name=importuser[gender][] value=".$u['gender']." /></td>";
                echo "<td>"."<input type=text name=importuser[age][] value=".$u['age']." /></td>";
                echo "<td>"."<input type=text name=importuser[idcard_no][] value=".$u['idcard_no']." /></td>";
                echo "<td>"."<input type=text name=importuser[married][] value=".$u['married']." /></td>";
                echo "<td>"."<input type=text name=importuser[package_id][] value=".$u['package_id']." /></td>";
                echo "</tr>";
            }
        ?>
    </table>
</form>